From 157d4e33cd6f2d10def01413640ee6978713b8ca Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 13 Jul 2007 15:42:27 +0100 Subject: [PATCH] x86/32: Limit bootstrap 1:1 mapping to 1GB. Signed-off-by: Keir Fraser --- xen/arch/x86/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 5786296a7b..ba76243c47 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -37,10 +37,10 @@ #include #if defined(CONFIG_X86_64) -#define BOOTSTRAP_DIRECTMAP_END (1UL << 32) +#define BOOTSTRAP_DIRECTMAP_END (1UL << 32) /* 4GB */ #define maddr_to_bootstrap_virt(m) maddr_to_virt(m) #else -#define BOOTSTRAP_DIRECTMAP_END HYPERVISOR_VIRT_START +#define BOOTSTRAP_DIRECTMAP_END (1UL << 30) /* 1GB */ #define maddr_to_bootstrap_virt(m) ((void *)(long)(m)) #endif -- 2.30.2